import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { installComp } from '@/components'
import { setupStore } from '@/store'
import { setupRouterGuard } from '@/router/guard'
import './styles/index.less'

async function bootstrap () {
  const app = createApp(App)

  installComp(app)

  setupStore(app)

  app.use(router)

  setupRouterGuard(router)

  app.mount('#app')
}

bootstrap()
